package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TDoctorMapper;
import com.ruoyi.system.domain.TDoctor;
import com.ruoyi.system.service.ITDoctorService;

/**
 * 医生信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-03-25
 */
@Service
public class TDoctorServiceImpl implements ITDoctorService 
{
    @Autowired
    private TDoctorMapper tDoctorMapper;

    /**
     * 查询医生信息
     * 
     * @param did 医生信息ID
     * @return 医生信息
     */
    @Override
    public TDoctor selectTDoctorById(Long did)
    {
        return tDoctorMapper.selectTDoctorById(did);
    }

    /**
     * 查询医生信息列表
     * 
     * @param tDoctor 医生信息
     * @return 医生信息
     */
    @Override
    public List<TDoctor> selectTDoctorList(TDoctor tDoctor)
    {
        return tDoctorMapper.selectTDoctorList(tDoctor);
    }

    /**
     * 新增医生信息
     * 
     * @param tDoctor 医生信息
     * @return 结果
     */
    @Override
    public int insertTDoctor(TDoctor tDoctor)
    {
        return tDoctorMapper.insertTDoctor(tDoctor);
    }

    /**
     * 修改医生信息
     * 
     * @param tDoctor 医生信息
     * @return 结果
     */
    @Override
    public int updateTDoctor(TDoctor tDoctor)
    {
        return tDoctorMapper.updateTDoctor(tDoctor);
    }

    /**
     * 批量删除医生信息
     * 
     * @param dids 需要删除的医生信息ID
     * @return 结果
     */
    @Override
    public int deleteTDoctorByIds(Long[] dids)
    {
        return tDoctorMapper.deleteTDoctorByIds(dids);
    }

    /**
     * 删除医生信息信息
     * 
     * @param did 医生信息ID
     * @return 结果
     */
    @Override
    public int deleteTDoctorById(Long did)
    {
        return tDoctorMapper.deleteTDoctorById(did);
    }
}
